package demo.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;

import inject.Cat;

public class HelloService{
	
	
	// xml 配置与 @Autowired 混合使用
	@Autowired
	private Cat cat;
	
	private String info;
	
	public String hello(String name){
		return "hello,"+name+","+new Date()+",cat="+cat;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}
	
	
    
}